#!/usr/bin/env bash

docker-compose up -d

existed=`grep '127.0.0.1 hbase' /etc/hosts`

if [ $? != 0 ]; then
    sudo bash -c 'echo 127.0.0.1 hbase >> /etc/hosts'
fi